package model

const (
	GW_MODE string = "DMXFGW"
	DMXFGW  string = GW_MODE

	DMXFGW_NODE string = "DMXFGW_NODE"

	ALARM_HZFGW_OFFLINE            string = "终端离线"
	ALARM_HZFGW_NODE_OFFLINE       string = "饲喂器离线"
	ALARM_HZFGW_NODE_FEED_BLOCKED  string = "出料堵塞"
	ALARM_HZFGW_NODE_WATER_BLOCKED string = "出水堵塞"
	ALARM_HZFGW_NODE_IDLING        string = "空转"

	ALARM_GW_OFFLINE             string = "终端离线"
	ALARM_SWQ_OFFLINE            string = "饲喂器离线"
	ALARM_SWQ_FEED_BLOCKED       string = "出料堵塞" //堵料
	ALARM_SWQ_WATER_BLOCKED      string = "出水堵塞" //堵水，没脉冲
	ALARM_SWQ_AD_ERROR           string = "探针异常" //探针挂壁
	ALARM_SWQ_TOUCH_ERROR        string = "触碰异常" //连续两顿都没有触碰下料
	ALARM_SWQ_MOTOR_CUR_TOO_HIGH string = "电机异常" //电流过大
	ALARM_SWQ_WATER_ERROR        string = "下水异常" //出水但一直未满
	ALARM_SWQ_MOTOR_IDLING       string = "电机空转"

	ALARM_TYPE_GW  int = 1
	ALARM_TYPE_SWQ int = 2

	ALARM_TYPE_FEED_DAY int = 10

	ALARM_SUBTYPE_GW_OFFLINE int = 0

	ALARM_SUBTYPE_SWQ_OFFLINE int = 0

	ALARM_SUBTYPE_SWQ_FEED_BLOCKED       int = 1
	ALARM_SUBTYPE_SWQ_WATER_BLOCKED      int = 2
	ALARM_SUBTYPE_SWQ_AD_ERROR           int = 3
	ALARM_SUBTYPE_SWQ_TOUCH_ERROR        int = 4
	ALARM_SUBTYPE_SWQ_MOTOR_CUR_TOO_HIGH int = 5
	ALARM_SUBTYPE_SWQ_WATER_ERROR        int = 6
	ALARM_SUBTYPE_SWQ_MOTOR_IDLING       int = 7

	ALARM_LEVEL_NOTICE int = 0 //通知
	ALARM_LEVEL_1      int = 1 //1级告警
	ALARM_LEVEL_2      int = 2 //2级告警
	ALARM_LEVEL_3      int = 3 //3级告警

	ALARM_CANCEL  int = 0
	ALARM_HAPPEN  int = 1
	ALARM_CONFIRM int = 2

	FeedNodeReplaceStatusUnProcess string = "unprocess" //待处理
	FeedNodeReplaceStatusProcess   string = "process"   //处理中
	FeedNodeReplaceStatusDone      string = "done"      //处理完成
	FeedNodeReplaceStatusErr       string = "err"       //处理错误
)
